//
//  FinancialDetailsViewController.m
//  LotteryProject
//
//  Created by 阳光 on 17/7/9.
//  Copyright © 2017年 阳光. All rights reserved.
//

#import "FinancialDetailsViewController.h"
#import "AllFinancialDetailsViewController.h"
#import "BuyLotteryFinancialDetailsViewController.h"
#import "CashFinancialDetailsViewController.h"
#import "PriseFinancialDetailsViewController.h"
#import "RewardFinancialDetailsViewController.h"
#import "RechargeFinancialDetailsViewController.h"

@interface FinancialDetailsViewController ()

@end

@implementation FinancialDetailsViewController

- (void)viewDidLoad
{
    [super viewDidLoad];

    // 初始化样式
    [self initView];

    // 添加子控制器
    [self addChildVC];

}

// 初始化样式
-(void)initView
{
    // 设置标题栏样式
    [self setUpTitleEffect:^(UIColor *__autoreleasing *titleScrollViewColor, UIColor *__autoreleasing *norColor, UIColor *__autoreleasing *selColor, UIFont *__autoreleasing *titleFont, CGFloat *titleHeight, CGFloat *titleWidth)
     {
         *titleScrollViewColor=[UIColor whiteColor];
         *norColor=Color666666;
         *selColor=MainColor;
         *titleWidth=APPW/6;
     }];

    // 设置下标
    [self setUpUnderLineEffect:^(BOOL *isUnderLineDelayScroll, CGFloat *underLineH, UIColor *__autoreleasing *underLineColor, BOOL *isUnderLineEqualTitleWidth) {
        *isUnderLineDelayScroll=YES;
        *underLineColor=MainColor;
        *underLineH=2;
    }];
}

// 添加子控制器
-(void)addChildVC
{
    AllFinancialDetailsViewController *vc1=[AllFinancialDetailsViewController new];
    vc1.title=@"全部";
    [self addChildViewController:vc1];

    BuyLotteryFinancialDetailsViewController *vc2=[BuyLotteryFinancialDetailsViewController new];
    vc2.title=@"购彩";
    [self addChildViewController:vc2];

    CashFinancialDetailsViewController *vc3=[CashFinancialDetailsViewController new];
    vc3.title=@"充值";
    [self addChildViewController:vc3];

    PriseFinancialDetailsViewController *vc4=[PriseFinancialDetailsViewController new];
    vc4.title=@"派奖";
    [self addChildViewController:vc4];

    RechargeFinancialDetailsViewController *vc5=[RechargeFinancialDetailsViewController new];
    vc5.title=@"提款";
    [self addChildViewController:vc5];

    RewardFinancialDetailsViewController *vc6=[RewardFinancialDetailsViewController new];
    vc6.title=@"奖励";
    [self addChildViewController:vc6];

}

@end
